<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>条件渲染</title>
</head>
<body>
      <div id="div">
          <div v-if="num%3==0">a</div>
          <div v-else-if="num%3==1">b</div>
          <div v-else="num%3==2">c</div>

          <div v-show="flag">d</div>
      </div>
</body>
      <script src="js/vue.js"></script>
      <script>
        new Vue({
            el:"#div",
            data:{
              num:0,
              flag:false
            }
        });
      </script>
</html>